﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.IO;

namespace WebUI.UserControls
{
    public partial class EmployeeNavigate : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                
            }
        }

        public int RecordID { get; set; }
        public string EmployeeID { get; set; }
        public string EmployeeName
        {
            set
            {
                lnkEmployeeAction.Text = value;
            }
        }
        public string GetPagePath(string page)
        {
            string path = HttpContext.Current.Request.ApplicationPath;
            if (!path.EndsWith(@"/"))
                path += @"/";
            return path + "Pages/" + page;
        }
        public string IsDisabled(string page)
        {
            string filename = Path.GetFileName(Request.Path);
            return page.ToLower() == filename.ToLower()?"true":"false";
        }
    }
}